﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BotvaBot.RequestChainItems;
using BotvaBot.RequestChains.Base;

namespace BotvaBot.RequestChains
{
    public class WorkInKarierChain : BotvaChainBase
    {
        public WorkInKarierChain()
            : base()
        { }

        public WorkInKarierChain(BotvaChainContext parentContext)
            : base(parentContext)
        { }


        public override void Init()
        {
            base.Init();

            AddItem(new EnterChainItem(), () => !WithInheritedContext);
            AddItem(new LoginChainItem(), () => !WithInheritedContext);
            AddItem(new GotoPersonajChainItem(), () => WithInheritedContext);
            AddItem(new GotoShahtaChainItem());
            AddItem(new GotoKarierChainItem());
            AddItem(new WorkInKarierChainItem());
            AddItem(new LogoutChainItem(), () => !WithInheritedContext);
        }
    }
}
